using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using Bussiness.Entity;
namespace Bussiness.Manager
{
                

    public class PT_OILManager:Bussiness.ManagerBase.PT_OILManagerBase
    {
            public static PT_OILManager CreateInstant()
            {
                return new PT_OILManager();
            }
            public PT_OILEntity GetByID(int ID)
            {
                List<PT_OILEntity> lst = SelectByIDLST(ID);
                if (lst != null && lst.Count > 0)
                    return lst[0];
                return null;
            }
            public List<PT_OILEntity> GetByCode(string code)
            {
                List<PT_OILEntity> lst = SelectByCodeLST(code);
                for (int i = 0; i < lst.Count; i++)
                {
                    if (lst[i].IsActive == false)
                        lst.Remove(lst[i]);
                }
                return lst;
            }
    }
}
                    
